import 'package:t3_data_service/biz_data_source/map/address/city_pick/city_pick.dart';
import 'package:t3_data_service/get_data_service.dart';

class CityPickController {
  var dataService = getService<CityPickService>();

  HostModel? currentLocation() {
    return dataService.getCurrentLocation();
  }

  void cacheLastCity(HostModel hostModel, CityScope? cityScope) {
    dataService.cacheLastCity(hostModel, cityScope);
  }

  Future<List<HostModel>> getLastCities(CityScope? cityScope) async {
    return dataService.getLastCities(cityScope);
  }

  getOpenCity(CityScope? cityScope, OpenCityCallback callback) {
    dataService.getOpenCity(cityScope, callback);
  }

  getAllCity(OpenCityCallback callback) {
    dataService.getAllCity(callback);
  }
}